// Orange wire to Pin 9// Red wire to 5V// Brown to Ground #include <Servo.h> Servo myservo; void setup() { myservo.attach(9); } void loop() { myservo.write(1); delay(1000); myservo.write(179); delay(1000); }
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed